package com.mrd.gtimp.business.entity;

import com.mrd.annotation.validation.MRDLength;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * <p> application name: gtimp <p> copyright: Copyright@2012 明睿达科技有限公司
 */

/**
 * @author luob
 */
@Entity(name = "T_BIZ_SUIFUDAN")
public class SuiFuDan implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(generator = "paymentableGenerator")
    @GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
    @MRDLength(max = 32)
    private String id;

    @MRDLength(max = 100, name = "temp_id")
    private String temp_id;
    /**
     * 随附单代码
     */
    @MRDLength(max = 50, name = "随附单代码")
    private String suifudan_co;
    /**
     * 随附单代码cn
     */
    @MRDLength(max = 100, name = "随附单代码cn")
    private String suifudan_co_cn;
    /**
     * 随附单编号
     */
    @MRDLength(max = 50, name = "随附单编号")
    private String suifudan_no;
    /**
     * 相关报关单信息
     */
    @ManyToOne
    @JoinColumn(name = "DECLARATION_ID")
    private Declaration declaration;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSuifudan_co() {
        return suifudan_co;
    }

    public void setSuifudan_co(String suifudan_co) {
        this.suifudan_co = suifudan_co;
    }

    public String getSuifudan_no() {
        return suifudan_no;
    }

    public void setSuifudan_no(String suifudan_no) {
        this.suifudan_no = suifudan_no;
    }

    public Declaration getDeclaration() {
        return declaration;
    }

    public void setDeclaration(Declaration declaration) {
        this.declaration = declaration;
    }

    public String getTemp_id() {
        return temp_id;
    }

    public void setTemp_id(String temp_id) {
        this.temp_id = temp_id;
    }

    public String getSuifudan_co_cn() {
        return suifudan_co_cn;
    }

    public void setSuifudan_co_cn(String suifudan_co_cn) {
        this.suifudan_co_cn = suifudan_co_cn;
    }
}
